/**
 * Created by administrator on 2/21/14.
 */


public class Triangle {

    void print_one() {
        System.out.print('*');
    }

    void print_only_one() {
        print_one();
        System.out.println();
    }

    void print_horizontal(int n) {
        int x = 0;
        while (x < n) {
            print_one();
            x++;
        }
        System.out.println();
    }

    void print_vertical(int n) {
        int x = 0;
        while (x < n) {
            print_one();
            System.out.println();
            x++;
        }
    }

    void print_right(int n){
        int x = 0;
        while (x < n) {
            x++;
            print_horizontal(x);
        }
    }

}
